package ci092.trabalho;

import javax.persistence.Basic;
import javax.persistence.FetchType;
import javax.persistence.Lob;
import javax.validation.constraints.NotNull;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import ci092.trabalho.Candidato;
import javax.persistence.ManyToOne;

@RooJavaBean
@RooToString
@RooEntity
public class Documentos {

    private int tipo_documento;

    @NotNull
    @Lob
    @Basic(fetch = FetchType.LAZY)
    private byte[] content;

    @ManyToOne
    private Candidato candidato;
}
